package com.tuanzhang.mall.seller.types.exception;

import lombok.Data;

/**
 * @author: shaofangjie
 * @time: 2019-10-09 14:54
 * @description：
 **/
@Data
public class ApiException extends RuntimeException {

    private String code = "-1";

    public ApiException() {
        super();
    }

    public ApiException(String message) {
        super(message);
    }

    public ApiException(String code, String message) {
        super(message);
        this.code = code;
    }

    public ApiException(Throwable ex) {
        super(ex);
    }

    public ApiException(String message, Throwable ex) {
        super(message, ex);
    }

    public ApiException(String code, String message, Throwable ex) {
        super(message, ex);
        this.code = code;
    }
}
